package com.mtons.mblog.modules.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Table;

import org.hibernate.annotations.Type;

import lombok.Data;

@Data
@Entity
@Table(name = "ext_mto_say")
public class Say implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 7378027880514820586L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private long id;
	/**
	 * 内容
	 */
	@Lob
	@Basic(fetch = FetchType.LAZY)
	@Type(type = "text")
	private String comment;

	private String sercode;
	/**
	 * 发布时间
	 */
	@Column(name = "say_time")
	private Date lastLogin;
}
